CFLAG= -std=c++17 -I ../../common/muduobase/include
LFLAG= -L ../../common/muduobase/lib -lmuduo_net -lmuduo_base -pthread -ljsoncpp

all:rpc_client rpc_server register_server
rpc_server:test_server.cc
	g++ -o $@ $^  $(CFLAG) $(LFLAG)
rpc_client:test_client.cc 
	g++ -o $@ $^  $(CFLAG) $(LFLAG)
register_server:test_register.cc
	g++ -o $@ $^  $(CFLAG) $(LFLAG)
.PHONY:debug
debug:grpc__client grpc__server gregister_server
grpc__server:test_server.cc
	g++ -o $@ $^  $(CFLAG) $(LFLAG) -g
grpc__client:test_client.cc 
	g++ -o $@ $^  $(CFLAG) $(LFLAG) -g
gregister_server:test_register.cc
	g++ -o $@ $^  $(CFLAG) $(LFLAG) -g

.PHONY:clean
clean: 
	rm -rf rpc_client rpc_server grpc__client grpc__server register_server gregister_server